﻿<%@ Page Language="C#" MasterPageFile="~/adm-Master.Master" AutoEventWireup="true" CodeBehind="orderDetail.aspx.cs" Inherits="BookStore.admin.orderDetail" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="PageName">OrderDetail Manager</div>
    
<asp:Panel ID="pnView" runat="server">

<div class="Control">
    <ul>
        <li>
            <asp:LinkButton CssClass="vadd" ID="lbtAddT" runat="server" 
                onclick="lbtAddT_Click">Add new</asp:LinkButton>
        </li> 
        <li>
            <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshT" runat="server" 
                onclick="lbtRefreshT_Click">Refesh</asp:LinkButton>
        </li> 
        <li> 
            <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">
            Back</a> </li> 
    </ul>
</div>
    <asp:GridView ID="gvOrderdetail" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" BorderWidth="1px" Width="100%" 
        onrowdeleting="gvOrderdetail_RowDeleting" 
        onselectedindexchanging="gvOrderdetail_SelectedIndexChanging" 
        onpageindexchanging="gvOrderdetail_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="orderID" HeaderText="orderID" />
            <asp:BoundField DataField="productID" HeaderText="productID" />
            <asp:BoundField DataField="quantity" HeaderText="quantity" />
            <asp:BoundField DataField="price" HeaderText="price" />
            <asp:BoundField DataField="status" HeaderText="status" />
            <asp:CommandField ShowDeleteButton="True" />
            <asp:CommandField ShowSelectButton="True" />
        </Columns>
    </asp:GridView>
<div class="Control">
    <ul>
        <li>
            <asp:LinkButton CssClass="vadd" ID="lbtAddB" runat="server" OnClick="lbtAddT_Click">Add new</asp:LinkButton>
        </li> 
        <li>
            <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshB" runat="server">Refesh</asp:LinkButton></li> 
        <li> 
            <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Back</a> 
        </li>
    </ul>
</div>
</asp:Panel>
<asp:Panel ID="pnUpdate" runat="server" Visible="False">
<table class="TableUpdate" border="1">
    <tr> 
        <td class="Control" colspan="2">
            <ul>
                <li>
                    <asp:LinkButton CssClass="uupdate" ID="lbtUpdateT" runat="server">Save</asp:LinkButton>
                </li> 
                <li> 
                    <asp:LinkButton CssClass="uback" ID="lbtBackT" runat="server" 
                        CausesValidation="False" onclick="lbtBackT_Click">Back</asp:LinkButton>
                </li> 
            </ul>
        </td> 
    </tr>
    <tr> 
    <th> 
       <asp:Label ID="lblorder" runat="server" Text="OrderID :"></asp:Label>
    </th>
    <td>
        <asp:DropDownList ID="ddlOrder" runat="server" AutoPostBack="True">
        </asp:DropDownList>
    </td>
     </tr>
    <tr> 
       <th> 
            <asp:Label ID="lblPassword" runat="server" Text="ProductID"></asp:Label>
       </th>
       <td>
            <asp:DropDownList ID="ddlProduct" runat="server" AutoPostBack="True">
            </asp:DropDownList>
       </td>
     </tr>
     <tr> 
        <th> 
            <asp:Label ID="lblQuantity" runat="server" Text="Quantity :"></asp:Label>
        </th>
        <td>
            <asp:TextBox ID="txtquantity" runat="server" CssClass="Text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtquantity" ErrorMessage="not Blank"></asp:RequiredFieldValidator>
        </td>
     </tr>
     <tr> 
        <th> 
            <asp:Label ID="lblPrice" runat="server" Text="Price :"></asp:Label>
        </th>
        <td>
            <asp:TextBox ID="txtPrice" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtPrice" ErrorMessage="not Blank"></asp:RequiredFieldValidator>
        </td>
      </tr>
     <tr> 
        <th> 
            <asp:Label ID="lblStatus" runat="server" Text="Status :"></asp:Label>
        </th>
        <td>
            <asp:RadioButton ID="rdbStatus" runat="server" Text="Checked" />
        </td>
     </tr>
     <tr> 
         <td class="Control" colspan="2">
             <ul>
                 <li>
                 <asp:LinkButton CssClass="uupdate" ID="lbtUpdate" runat="server" 
                         onclick="lbtUpdate_Click">Save</asp:LinkButton></li> <li> 
                 <asp:LinkButton CssClass="uback" ID="lbtBack" runat="server" CausesValidation="False" OnClick="lbtBackT_Click">Back</asp:LinkButton>
                 </li> 
             </ul>
         </td> 
     </tr>
</table>
</asp:Panel>
</asp:Content>
